<?php
namespace app\index\controller;

use think\Controller;

class Base extends Controller
{
    public function initialize()
    {
        if (!session('username')){
            $this->redirect('/index/login/login');
        }
    }
}